import 'package:library_base/entities/generated/json/base/json_convert_content.dart';
import 'package:library_base/entities/location_entity.dart';

LocationEntity $LocationEntityFromJson(Map<String, dynamic> json) {
  final LocationEntity shipperEntity = LocationEntity();

  final String? locationName = jsonConvert.convert<String>(json['locationName']);
  if (locationName != null) {
    shipperEntity.locationName = locationName;
  }
  final String? id = jsonConvert.convert<String>(json['id']);
  if (id != null) {
    shipperEntity.id = id;
  }
  return shipperEntity;
}

Map<String, dynamic> $LocationEntityToJson(LocationEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['id'] = entity.id;
  data['locationName'] = entity.locationName;
  return data;
}

